package com.ruoyi.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.domain.ExEquipmentManagement;
import com.ruoyi.mapper.ExEquipmentManagementMapper;
import com.ruoyi.service.IExEquipmentManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 实验设备管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-28
 */
@Service
public class ExEquipmentManagementServiceImpl implements IExEquipmentManagementService
{
    @Autowired
    private ExEquipmentManagementMapper exEquipmentManagementMapper;

    /**
     * 查询实验设备管理
     * 
     * @param id 实验设备管理主键
     * @return 实验设备管理
     */
    @Override
    public ExEquipmentManagement selectExEquipmentManagementById(Long id)
    {
        return exEquipmentManagementMapper.selectExEquipmentManagementById(id);
    }

    /**
     * 查询实验设备管理列表
     * 
     * @param exEquipmentManagement 实验设备管理
     * @return 实验设备管理
     */
    @Override
    public List<ExEquipmentManagement> selectExEquipmentManagementList(ExEquipmentManagement exEquipmentManagement)
    {
        return exEquipmentManagementMapper.selectExEquipmentManagementList(exEquipmentManagement);
    }

    /**
     * 新增实验设备管理
     * 
     * @param exEquipmentManagement 实验设备管理
     * @return 结果
     */
    @Override
    public int insertExEquipmentManagement(ExEquipmentManagement exEquipmentManagement)
    {
        exEquipmentManagement.setCreateTime(DateUtils.getNowDate());
        return exEquipmentManagementMapper.insertExEquipmentManagement(exEquipmentManagement);
    }

    /**
     * 修改实验设备管理
     * 
     * @param exEquipmentManagement 实验设备管理
     * @return 结果
     */
    @Override
    public int updateExEquipmentManagement(ExEquipmentManagement exEquipmentManagement)
    {
        return exEquipmentManagementMapper.updateExEquipmentManagement(exEquipmentManagement);
    }

    /**
     * 批量删除实验设备管理
     * 
     * @param ids 需要删除的实验设备管理主键
     * @return 结果
     */
    @Override
    public int deleteExEquipmentManagementByIds(Long[] ids)
    {
        return exEquipmentManagementMapper.deleteExEquipmentManagementByIds(ids);
    }

    /**
     * 删除实验设备管理信息
     * 
     * @param id 实验设备管理主键
     * @return 结果
     */
    @Override
    public int deleteExEquipmentManagementById(Long id)
    {
        return exEquipmentManagementMapper.deleteExEquipmentManagementById(id);
    }
}
